<?php
html::printPath(html::createCrudPath('country', $country, 'name', 'code'));
$msg->printMessages();

$isoLink = '<a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank">ISO 3166-1 alpha-2</a>';
$fb = new FormBuilder('country', $country);
$fb->text('code')->required()->readOnly(sql::isPersistent($country))->appendix(text::get('country-code-desc', $isoLink));
$fb->text('name')->required()->appendix(text::get('country-name-desc', $isoLink));
$fb->text('name_native')->required()->appendix(text::get('country-name_native-desc'));
$fb->submitButton();
$fb->write();
